import 'net.dart';

final apiManager = ApiManager();

class ApiManager {
  static String get gitUrl {
    return 'https://gitee.com/api/v5/repos/kamisato-nobitta/note-app/releases/latest';
  }

  Map<String, dynamic> gitAccessToken = {
    'access_token': '96bbf78f2f1dac958b60240a225912d3'
  };

  getGitInfo() async {
    return await HttpUtil().get(gitUrl, data: gitAccessToken);
  }

  getDownloadNewVersion(String url) async {
    return await HttpUtil().get(url);
  }
}
